<?PHP
  class PluginList{
    public $plugins;
    function Add($pluginInfo){
      $this->plugins[] = $pluginInfo;
    }
    
    function loadAll(){
      $pluginpath = Settings::getInstance()->get("root")."system/plugins";
      $oDir = openDir($pluginpath);
      while($item = readDir($oDir)){
        if(is_dir($pluginpath."/".$item)){
          if(file_exists($pluginpath."/".$item."/info.php")){
            include($pluginpath."/".$item."/info.php");
          }
        }
      }

      closeDir($oDir);
    }
  }
?>